package com.linkage.bss.crm.packagemgr.model;

import java.io.Serializable;
import java.util.Date;

public class RoleObj implements Serializable {
	private Long objId;

	private Short objType;

	private Long offerRoleId;

	private Integer roleCd;

	private String roleName;

	private Short defaultQty;

	private Short minQty;

	private Short maxQty;

	private Date startDt;

	private Date endDt;

	private Date createDt;

	private Date version;

	private static final long serialVersionUID = 1L;

	public Long getObjId() {
		return objId;
	}

	public void setObjId(Long objId) {
		this.objId = objId;
	}

	public Short getObjType() {
		return objType;
	}

	public Integer getRoleCd() {
		return roleCd;
	}

	public void setRoleCd(Integer roleCd) {
		this.roleCd = roleCd;
	}

	public void setObjType(Short objType) {
		this.objType = objType;
	}

	public Long getOfferRoleId() {
		return offerRoleId;
	}

	public void setOfferRoleId(Long offerRoleId) {
		this.offerRoleId = offerRoleId;
	}

	public Short getDefaultQty() {
		return defaultQty;
	}

	public void setDefaultQty(Short defaultQty) {
		this.defaultQty = defaultQty;
	}

	public Short getMinQty() {
		return minQty;
	}

	public void setMinQty(Short minQty) {
		this.minQty = minQty;
	}

	public Short getMaxQty() {
		return maxQty;
	}

	public void setMaxQty(Short maxQty) {
		this.maxQty = maxQty;
	}

	public Date getStartDt() {
		return startDt;
	}

	public void setStartDt(Date startDt) {
		this.startDt = startDt;
	}

	public Date getEndDt() {
		return endDt;
	}

	public void setEndDt(Date endDt) {
		this.endDt = endDt;
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public Date getVersion() {
		return version;
	}

	public void setVersion(Date version) {
		this.version = version;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (!(that instanceof RoleObj)) {
			return false;
		}
		RoleObj other = (RoleObj) that;
		return this.getObjId() == null ? other == null : this.getObjId().equals(other.getObjId())
						&& this.getObjType() == null ? other == null : this.getObjType().equals(other.getObjType())
						&& this.getOfferRoleId() == null ? other == null : this.getOfferRoleId().equals(
						other.getOfferRoleId())
						&& this.getDefaultQty() == null ? other == null : this.getDefaultQty().equals(
						other.getDefaultQty())
						&& this.getMinQty() == null ? other == null : this.getMinQty().equals(other.getMinQty())
						&& this.getMaxQty() == null ? other == null : this.getMaxQty().equals(other.getMaxQty())
						&& this.getStartDt() == null ? other == null : this.getStartDt().equals(other.getStartDt())
						&& this.getEndDt() == null ? other == null : this.getEndDt().equals(other.getEndDt())
						&& this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
						&& this.getVersion() == null ? other == null : this.getVersion().equals(other.getVersion());
	}

	@Override
	public int hashCode() {
		int hash = 23;
		if (getObjId() != null) {
			hash *= getObjId().hashCode();
		}
		if (getObjType() != null) {
			hash *= getObjType().hashCode();
		}
		if (getOfferRoleId() != null) {
			hash *= getOfferRoleId().hashCode();
		}
		if (getDefaultQty() != null) {
			hash *= getDefaultQty().hashCode();
		}
		if (getMinQty() != null) {
			hash *= getMinQty().hashCode();
		}
		if (getMaxQty() != null) {
			hash *= getMaxQty().hashCode();
		}
		if (getStartDt() != null) {
			hash *= getStartDt().hashCode();
		}
		if (getEndDt() != null) {
			hash *= getEndDt().hashCode();
		}
		if (getCreateDt() != null) {
			hash *= getCreateDt().hashCode();
		}
		if (getVersion() != null) {
			hash *= getVersion().hashCode();
		}
		return hash;
	}
}